import request from '@/utils/request'

// 查询收盘价监控列表
export function listListedClosedMonitor(query) {
  return request({
    url: '/monitor/listedCloseMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询收盘价监控详细
export function getDCPMonitoring(id) {
  return request({
    url: '/monitor/listedCloseMonitor/' + id,
    method: 'get'
  })
}

// 查询收盘价监控详细根据dealId
export function getListedClosedMonitor(dealId) {
  return request({
    url: '/monitor/listedCloseMonitor/byDealId/' + dealId,
    method: 'get'
  })
}

// 保存收盘价监控
export function saveListedClosedMonitor(data) {
  return request({
    url: '/monitor/listedCloseMonitor/save',
    method: 'post',
    data: data
  })
}

// 删除收盘价监控
export function delListedClosedMonitor(id) {
  return request({
    url: '/monitor/listedCloseMonitor/' + id,
    method: 'delete'
  })
}
